﻿using System;
using System.ComponentModel;

using FreeSql.DataAnnotations;


namespace TomNet.FreeSql.Base
{
    /// <summary>
    /// DB实体接口
    /// </summary>
    public interface IEntity
    {

    }

    /// <summary>
    /// DB实体基类
    /// </summary>
    public abstract class EntityLongBase : IEntity
    {
        /// <summary>
        /// 编号
        /// </summary>
        [Description("编号")]
        [Column(Position = 1, IsPrimary = true, IsIdentity = true)]
        public virtual long Id { get; set; }
    }

    /// <summary>
    /// DB实体基类
    /// </summary>
    public abstract class EntityGuidBase : IEntity
    {
        /// <summary>
        /// 编号
        /// </summary>
        [Description("编号")]
        [Column(Position = 1, IsPrimary = true)]
        public virtual Guid Id { get; set; }
    }
}
